/*
 * @Author         : jiabao
 * @Description    :
 * @Date           : 2024-07-14 11:11:21
 * @FilePath       : \c_test\test5\src\parm.c
 */
#include <stdio.h>
#include "parm.h"
static PARM_T sgParm;
void parm_set_workmode(int workMode)
{
    sgParm.workMode = workMode;
}
void parm_set_freq(int freq)
{
    sgParm.freq = freq;
}
int parm_get_workmode()
{
    return sgParm.workMode;
}
int parm_get_freq()
{
    return sgParm.freq;
}

void parm_init()
{
    parm_set_workmode(1);
    parm_set_freq(108);

#ifdef __cplusplus
    printf("c++ 编译器!\n");
#else
    printf("c 编译器!\n");
#endif
}
